<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	request.setAttribute("path", request.getContextPath());
%>
<script type="text/javascript">
$(function(){
	common.ajaxQuery("${root}/app/code/list");

	$("#id").change(function (){
		var val = $.trim($(this).val());
			if(common.isNotEmpty(val) && common.isNotNumberic(val)){
				$(this).val("");
				common.modalGlobalMessage("编码只能输入数字!");
			}
	});
});
</script>
<form class="form-horizontal" id="queryForm" role="form">
	<input name="orderName" value="name" type="hidden">
	<table class="table table-hover">
		<tr>
			<th class="span3 text-right">编码:</th>
			<td>&nbsp;<input type="text" class="input-xlarge" name="id" id="id" /></td>
			<th  class="span3 text-right">名称:</th>
			<td>&nbsp;<input type="text" class="input-xlarge" name="name" id="name" /></td>
		</tr>
		<tr>
		</tr>
	</table>
	<div class="form-actions text-center">
		      <button type="button" class="btn btn-success" onclick="common.ajaxQuery('${root}/app/code/list')">查询</button>
	 </div>
</form>
<div class="table-responsive">
<table class="table table-striped table-bordered">
	<thead>
		<tr >
			<th class="col-sm-1 text-center">序号</th>
			<th class="col-sm-2 text-center">编号</th>
			<th class="col-sm-3 text-center">名称</th>
			<th class="col-sm-2 text-center">操作</th>
		</tr>
	</thead>
	<tbody id="dataList">
	</tbody>
</table>
</div>

